import request from '@/utils/request'

// 查询kyc完善度列表
export function listIntegrity(query) {
  return request({
    url: '/kycinfo/integrity/list',
    method: 'get',
    params: query
  })
}

// 查询kyc完善度详细
export function getIntegrity(integrityId) {
  return request({
    url: '/kycinfo/integrity/' + integrityId,
    method: 'get'
  })
}

// 新增kyc完善度

export function addIntegrity(data) {
  return request({
    url: '/kycinfo/integrity',
    method: 'post',
    data: data
  })
}

// 修改kyc完善度

export function updateIntegrity(data) {
  return request({
    url: '/kycinfo/integrity',
    method: 'put',
    data: data
  })
}

// 删除kyc完善度

export function delIntegrity(integrityId) {
  return request({
    url: '/kycinfo/integrity/' + integrityId,
    method: 'delete'
  })
}
